﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Castle.ActiveRecord;

namespace Windvoice.Authorize
{
    [Serializable]
    [ActiveRecord("User")]
    public partial class User : ActiveRecordBase<User>
    {
        [PrimaryKey(PrimaryKeyType.Identity, "ID")]
        public int ID
        {
            get;
            set;
        }

        [Property]
        public int Source
        {
            get;
            set;
        }

        [Property]
        public long UniqueID
        {
            get;
            set;
        }

        [Property]
        public string DisplayName
        {
            get;
            set;
        }

        [Property]
        public string Location
        {
            get;
            set;
        }

        [Property]
        public string Description
        {
            get;
            set;
        }

        [Property]
        public string Url
        {
            get;
            set;
        }

        [Property]
        public string Domain
        {
            get;
            set;
        }

        [Property]
        public string PortraitUrl
        {
            get;
            set;
        }

        [Property]
        public int Gender
        {
            get;
            set;
        }

        [Property]
        public bool Verified
        {
            get;
            set;
        }

        [Property]
        public DateTime CreateTime
        {
            get;
            set;
        }
    }

    public enum UserSource
    {
        Sina=1,
        Sohu=2,
        QQ=3,
        NetEasy=4,
        Google=5
    }
}
